package com.open.center.model.dto;

import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * DTO基类
 *
 * @author Riche's
 * @since 2025/6/7
 */
@Data
public class BaseDto {

    @Schema(name = "id", description = "Id")
    private String id;

    @Schema(name = "createBy", description = "创建人")
    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(name = "createTime", description = "创建时间")
    private LocalDateTime createTime;

    @Schema(name = "updateBy", description = "更新人")
    private String updateBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(name = "updateTime", description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(name = "deleteBy", description = "删除人")
    private String deleteBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(name = "deleteTime", description = "删除时间")
    private LocalDateTime deleteTime;
}
